import time

from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https:www.baidu.com')
driver.maximize_window()
time.sleep(2)

cookies = [
    {
        'name':'BDUSS_BFESS',
        'value':'zVYVjlzVHF-TmVkbXl5SUtST1BmRHFRTnNoblFpajMwMzRNa1JHUkFaU3phNGxrSVFBQUFBJCQAAAAAAAAAAAEAAADUS98oc21pbGW62smrx77esQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALPeYWSz3mFkZ'
    },
    {
        'name':'BDUSS',
        'value' :'zVYVjlzVHF-TmVkbXl5SUtST1BmRHFRTnNoblFpajMwMzRNa1JHUkFaU3phNGxrSVFBQUFBJCQAAAAAAAAAAAEAAADUS98oc21pbGW62smrx77esQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALPeYWSz3mFkZ'
    }
]
for i in cookies:
    driver.add_cookie(i)
driver.refresh()
time.sleep(4)
